Skip to content

Track verified files nested under the indexed target namespace - #1888

Merged
SimonCropp merged 1 commit into
mainfrom
fix-nested-stale-snapshots
Aug 30, 2026
Merged

Track verified files nested under the indexed target namespace#1888
SimonCropp merged 1 commit into
mainfrom
fix-nested-stale-snapshots

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

A target name may contain a directory separator: VerifyDirectory names each target after its path within the tree, and SanitizeFilePath deliberately keeps separators. Those files land under a '{prefix}#' directory, which the flat EnumerateFiles scan could not see.

So a verified file below that directory was never added to the stale set, and removing or renaming a file inside a verified tree left its snapshot behind with the test still green. Received files in the same place were never swept either.

The scan now also walks '{prefix}#' subdirectories. The prefix is carried by the directory name, so a neighbouring test whose name merely starts with the same text keeps its own namespace.

Deletes the one file in this repo that the gap was hiding: an orphan added by #1547 alongside the sanitized name that replaced it. The suite now reports it, which is how it was found.

A target name may contain a directory separator: VerifyDirectory names each
target after its path within the tree, and SanitizeFilePath deliberately keeps
separators. Those files land under a '{prefix}#' directory, which the flat
EnumerateFiles scan could not see.

So a verified file below that directory was never added to the stale set, and
removing or renaming a file inside a verified tree left its snapshot behind with
the test still green. Received files in the same place were never swept either.

The scan now also walks '{prefix}#' subdirectories. The prefix is carried by the
directory name, so a neighbouring test whose name merely starts with the same
text keeps its own namespace.

Deletes the one file in this repo that the gap was hiding: an orphan added by
#1547 alongside the sanitized name that replaced it. The suite now reports it,
which is how it was found.
@SimonCropp SimonCropp added this to the 33.0.0 milestone Aug 29, 2026
@SimonCropp
SimonCropp merged commit 27db6b6 into main Aug 30, 2026
7 checks passed
@SimonCropp
SimonCropp deleted the fix-nested-stale-snapshots branch August 30, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant